<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<!--此时不会输出任何数据-->

	<body ng-app="app" ng-controller="myController">
		<div isolated-directive=""></div>
		<script type="text/javascript" src="../js/angular.js"></script>
		<script>
			var app=angular.module("app",[]);
			app.controller("myController",function($scope){
					$scope.user = {
					id: 1,
					name: "hello world"
				};
			}).directive('isolatedScope', function() {
				return {
					scope: {},
					template: 'Name: {{user.name}} Street: {{user.addr}}'
				};
			})
	
		</script>
	</body>

</html>